#include <bits/stdc++.h>
using namespace std;
int f[10] = {1, 7, 8, 8, 8, 9, 10};
int main() {
  int *x = lower_bound(f + 0, f + 7, 8);
  int *y = upper_bound(f + 0, f + 7, 8);
  cout << y - x;

  return 0;
}